﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Ex419;

namespace information
{
    public partial class main : Form
    {
        public main()
        {
            InitializeComponent();
        }

        private void main_Load(object sender, EventArgs e)
        {

        }

        private void button1_Click(object sender, EventArgs e)
        {
            DataInput frmDataInput = new DataInput();
            frmDataInput.Show();
            
        }

        private void button2_Click(object sender, EventArgs e)
        {
            LookData frmEdit = new LookData();
            frmEdit.Show();
        }

        private void button3_Click(object sender, EventArgs e)
        {
            information.Resources.EditData frmEditData = new information.Resources.EditData();
            frmEditData.Show();
        }

        private void MainFormClosed(object sender, FormClosedEventArgs e)
        {
            Application.Exit();
        }

        private void main_FormClosing(object sender, FormClosingEventArgs e)
        {
            DialogResult result = MessageBox.Show("你确定要关闭吗！", "提示信息", MessageBoxButtons.OKCancel, MessageBoxIcon.Information);
            if (result == DialogResult.OK)
            {
                e.Cancel = false;  //点击OK
            }
            else
            {
                e.Cancel = true;
            }  

        }

        private void button4_Click(object sender, EventArgs e)
        {
            AlterData frmAlter = new AlterData();
            frmAlter.Show();
        }

        private void button5_Click(object sender, EventArgs e)
        {
            DeleteData frmDelete = new DeleteData();
            frmDelete.Show();
        }

        private void button6_Click(object sender, EventArgs e)
        {
            SearchData frmSearch = new SearchData();
            frmSearch.Show();
        }

        private void button7_Click(object sender, EventArgs e)
        {
            SMTP frmSMTP = new SMTP();
            frmSMTP.Show();
        }

        private void button8_Click(object sender, EventArgs e)
        {
            Audio frmAudio = new Audio();
            frmAudio.Show();
        }

        private void button9_Click(object sender, EventArgs e)
        {
            Encrypt frmEncrypt = new Encrypt();
            frmEncrypt.Show();
        }

        private void button10_Click_1(object sender, EventArgs e)
        {
            SerialPort frmSerial = new SerialPort();
            frmSerial.Show();
        }


    }
}
